Installing Kanzi build environment for Android

Before you can build your Kanzi application, set up and configure the build environment for your target platforms. Build environment includes tools that the building system uses to build your application for the target platforms.

Kanzi comes with Kanzi Build Environment tool that automates the downloading and installing of the tools required to build applications for Android on Windows. See Installing the Kanzi build environment for Android.

To build and deploy Kanzi applications for Android, you need the following:

Kanzi is tested and works with Android Platforms 2.3 and 4.0.3. To build and deploy Kanzi applications for other Android platforms, you have to download those platforms manually.

Installing the Kanzi build environment for Android

If you want to set up the Kanzi build environment for Android manually, see Installing manually the Kanzi build environment for Android.

To install the Kanzi build environment for Android:

  1. Start the Kanzi Build Environment tool.
    You can find the tool in the Kanzi Windows Start Menu or at <KanziInstallation>/Studio/bin/KanziBuildEnvironmentSetup.exe.
  2. Follow the onscreen instructions.
    Kanzi Build Environment tool downloads the required software to <KanziWorkspace>/3rdPartySDKs. After downloading, the tool extracts the downloaded packages to the same directory.
  3. Manually download and install the Java Development Environment Kit 7 (1.7) or newer (Windows x86, 32-bit version).

Before you can build and deploy Kanzi applications to Android devices you need to install on your computer the USB device drivers for your Android device. See Installing Android USB driver for your Android device.

Installing Android USB driver for your Android device

Before you can deploy your Kanzi application on your Android device, you have to install on your computer the Android USB driver for your Android device.

To install the Android USB driver for your Android device:

  1. Find the Android USB driver on Android developer website page Android OEM USB Drivers.
  2. Follow the installation instructions provided on the Android developer website or the manufacturer of your device.
  3. On your Android device:
    1. In Settings enable Development options.
    2. In Settings > Security enable Unknown sources.
  4. (Optional) To check that the device drivers are installed correctly, connect your Android device to your computer, run adb devices command in the Windows command prompt.
    If the Android USB driver is installed correctly, your device is listed in the command output.

Viewing the Kanzi environment variables

To view the current Kanzi environment variables, in Kanzi Studio, select Edit > User Preferences > Advanced tab and click Open Build Environment Configuration button.

When you use Kanzi Build Environment tool to install the build environment, Kanzi sets the environment variables. You can set the Kanzi environment variables in kanzi_environment_variables.bat, which allows you to configure Kanzi build environment without changing your system's environment variables. See Setting the Kanzi environment variables.

Testing your Kanzi build environment for Android

To test whether your Kanzi build environment for Android works, create a Kanzi application for Android and deploy it to your device. See Deploying Kanzi applications to Android and Creating your first application.

See also

Deploying Kanzi applications to Android

Creating your first application

Android OEM USB Drivers